package redis

import "core/config"

var (
	Config = &RedisConfig{}
)

func init() {
	config.ConfigViper.UnmarshalKey("redis", Config)
	if "" == Config.Addr {
		return
	}
	InitRedis()
}
